import http from '../http'

/**
 * 获取特定类型的道路拥堵数据
 * @param {number} roadType - 道路类型 0-全部道路 1-快速/高速公路 2-普通道路
 * @param {number} timeType - 时间类型 0-实时 1-昨天
 */
export const getSpecificTrafficJam = (roadType, timeType) => {
  return http.get("/traffic-jam/getRoadRank", {
    params: {
      road_type: roadType,
      time_type: timeType
    }
  })
}


export const getRoadDetail = (params) => {
  return http.get("/traffic-jam/getRoadDetail", {
    params: {
      road_type: params.roadType,
      time_type: params.timeType,
      city_code: params.cityCode,
      line_code: params.lineCode
    }
  })
}

